package com.timer;

import com.timer.web.ClientApi2;
import com.timer.web.TaskMapper;
import com.timer.web.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 作者：LCG
 * 创建时间：2019/4/2 10:07
 * 描述：
 */
@Component
public class TimerServer {
    @Autowired
    private TaskService taskService;


    @Scheduled(cron = "0/50 * * * * ?")
    public void yewu1(){
        System.out.println ("==========进入执行定时任务===========");
        taskService.yewu1 ();

    }

}
